import api from "./index";

// 商品相关接口
export default {
  // 查询商品分类列表
  getGoodClassify: (params) => api.get("/system/goodclassify/list", params),
  // 根据分类查询商品列表
  getGoodList: (params) => api.get("/applet/good/listGoodVo", params),
  // 查询商品详情
  getGoodDetail: (goodId) => api.get(`/applet/good/GoodVo/${goodId}`),
  // 查询商品评论
  getGoodReviews: (params) => api.get("/applet/good/productReviews", params),
};
